package start;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.annotation.Resource;

class C implements I {
    private A3 a3;

    public C() {
        System.out.println("Create " + this);
    }

    @Resource(name = "a3Bean")
    public void setA3(A3 a3) {
        this.a3 = a3;
    }

    public A3 getA3() {
        return a3;
    }

    @PostConstruct
    public void postConstruct() {
        System.out.println(this + ":    postConstruct()");
    }

    @PreDestroy
    public void PreDestroy() {
        System.out.println(this + ":    PreDestroy()");
    }
}
